﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DataAccess;

namespace Business
{
    public static class RoundBUS
    {
        public static List<RoundDTO> GetRoundList()
        {
            return RoundDAO.GetRoundList();
        }

        public static bool AddNewRound(RoundDTO dtoRound)
        {
            return RoundDAO.AddNewRound(dtoRound);
        }

        public static bool IsRoundNameExists(RoundDTO dtoRound)
        {
            return RoundDAO.FindRound(dtoRound, RoundColumns.ROUND_NAME) != null;
        }

        public static RoundDTO FindRound(RoundDTO dtoRound, string searchOption)
        {
            return RoundDAO.FindRound(dtoRound, searchOption);
        }

        public static bool UpdateRound(RoundDTO dtoRound)
        {
            return RoundDAO.UpdateRound(dtoRound);
        }

        public static bool DeleteARound(RoundDTO dtoRound)
        {
            return RoundDAO.DeleteARound(dtoRound);
        }

        public static bool DeleteAllRound()
        {
            return RoundDAO.DeleteAllRound();
        }
    }
}
